ngModel ( directive in module ng )

Description

Is directive that tells Angular to do two-way data binding. It works together with input , select , textarea . You can easily write your own directives to use ngModel as well.

ngModel is responsible for:

For basic examples, how to use ngModel , see:

Usage

as attribute
<input ng-model>
   ...
</input>
as class
<input class="ng-model">
   ...
</input>